Skip to main content

acceptDrop

Type

property

Summary

Specifies whether a drop will be accepted during a drag and drop. Deprecated

Syntax

set the acceptDrop to {true | false}

Description

The acceptDrop property is deprecated as of LiveCode 2.9. Setting the acceptDrop to true is equivalent to setting the dragAction to "copy".

In previous versions, setting the acceptDrop property in an object's dragEnter handler allowed it to accept drops.

Examples

set the acceptDrop to true
if word 1 of the target is "button" then set the acceptDrop to false

glossary: object, property, handler, drag and drop

message: dragEnter, dragEnd

Compatibility and Support

Introduced

LiveCode 2.0

Platforms

desktop

Thank you for your feedback!

Was this page helpful?